import Vuex from 'vuex';
import Vue from 'vue';
const PUT_PRODUCT_REDPACKET = 'put_product_redpacket'
const state = {
    redpactket: []
}
const getters = {
    redpactket: (state) => state.redpactket
};
const mutations = {
    [PUT_PRODUCT_REDPACKET](state, product) {
        console.log(product)
        state.redpactket.push(product)
        console.log(state.redpactket)
    },
};
const actions = {
    put_product_redpacket({ commit }, product) {
        commit(PUT_PRODUCT_REDPACKET, product)
    },
};
















export default {
    state,
    mutations,
    actions,
    getters
}